.class Lcom/instagram/android/directshare/g/ah;
.super Ljava/lang/Object;
.source "DirectSharePermalinkMoreOptionsDialog.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# instance fields
.field final synthetic a:Lcom/instagram/android/directshare/g/ab;


# direct methods
.method private constructor <init>(Lcom/instagram/android/directshare/g/ab;)V
    .locals 0
    .parameter

    .prologue
    .line 98
    iput-object p1, p0, Lcom/instagram/android/directshare/g/ah;->a:Lcom/instagram/android/directshare/g/ab;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/instagram/android/directshare/g/ab;Lcom/instagram/android/directshare/g/ac;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 98
    invoke-direct {p0, p1}, Lcom/instagram/android/directshare/g/ah;-><init>(Lcom/instagram/android/directshare/g/ab;)V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 3
    .parameter "dialog"
    .parameter "which"

    .prologue
    .line 102
    iget-object v0, p0, Lcom/instagram/android/directshare/g/ah;->a:Lcom/instagram/android/directshare/g/ab;

    invoke-static {v0}, Lcom/instagram/android/directshare/g/ab;->a(Lcom/instagram/android/directshare/g/ab;)[Ljava/lang/CharSequence;

    move-result-object v0

    aget-object v0, v0, p2

    .line 104
    iget-object v1, p0, Lcom/instagram/android/directshare/g/ah;->a:Lcom/instagram/android/directshare/g/ab;

    invoke-static {v1}, Lcom/instagram/android/directshare/g/ab;->b(Lcom/instagram/android/directshare/g/ab;)Landroid/content/Context;

    move-result-object v1

    sget v2, Lcom/facebook/ba;->directshare_delete:I

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 105
    iget-object v0, p0, Lcom/instagram/android/directshare/g/ah;->a:Lcom/instagram/android/directshare/g/ab;

    invoke-static {v0}, Lcom/instagram/android/directshare/g/ab;->c(Lcom/instagram/android/directshare/g/ab;)V

    .line 117
    :cond_0
    :goto_0
    return-void

    .line 106
    :cond_1
    iget-object v1, p0, Lcom/instagram/android/directshare/g/ah;->a:Lcom/instagram/android/directshare/g/ab;

    invoke-static {v1}, Lcom/instagram/android/directshare/g/ab;->b(Lcom/instagram/android/directshare/g/ab;)Landroid/content/Context;

    move-result-object v1

    sget v2, Lcom/facebook/ba;->directshare_hide:I

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 107
    iget-object v0, p0, Lcom/instagram/android/directshare/g/ah;->a:Lcom/instagram/android/directshare/g/ab;

    invoke-static {v0}, Lcom/instagram/android/directshare/g/ab;->d(Lcom/instagram/android/directshare/g/ab;)V

    goto :goto_0

    .line 108
    :cond_2
    iget-object v1, p0, Lcom/instagram/android/directshare/g/ah;->a:Lcom/instagram/android/directshare/g/ab;

    invoke-static {v1}, Lcom/instagram/android/directshare/g/ab;->b(Lcom/instagram/android/directshare/g/ab;)Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/instagram/android/feed/c/a;->a(Ljava/lang/CharSequence;Landroid/content/res/Resources;)Z

    move-result v1

    if-eqz v1, :cond_3

    .line 109
    iget-object v0, p0, Lcom/instagram/android/directshare/g/ah;->a:Lcom/instagram/android/directshare/g/ab;

    invoke-static {v0}, Lcom/instagram/android/directshare/g/ab;->f(Lcom/instagram/android/directshare/g/ab;)Lcom/instagram/android/feed/c/a;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/directshare/g/ah;->a:Lcom/instagram/android/directshare/g/ab;

    invoke-static {v1}, Lcom/instagram/android/directshare/g/ab;->e(Lcom/instagram/android/directshare/g/ab;)Lcom/instagram/j/l;

    move-result-object v1

    invoke-virtual {v1}, Lcom/instagram/j/l;->b()Lcom/instagram/android/model/b/e;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/feed/c/a;->a(Lcom/instagram/android/model/b/e;)V

    goto :goto_0

    .line 110
    :cond_3
    iget-object v1, p0, Lcom/instagram/android/directshare/g/ah;->a:Lcom/instagram/android/directshare/g/ab;

    invoke-static {v1}, Lcom/instagram/android/directshare/g/ab;->b(Lcom/instagram/android/directshare/g/ab;)Landroid/content/Context;

    move-result-object v1

    sget v2, Lcom/facebook/ba;->directshare_ignore_all:I

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_4

    .line 111
    iget-object v0, p0, Lcom/instagram/android/directshare/g/ah;->a:Lcom/instagram/android/directshare/g/ab;

    invoke-static {v0}, Lcom/instagram/android/directshare/g/ab;->g(Lcom/instagram/android/directshare/g/ab;)V

    goto :goto_0

    .line 112
    :cond_4
    iget-object v1, p0, Lcom/instagram/android/directshare/g/ah;->a:Lcom/instagram/android/directshare/g/ab;

    invoke-static {v1}, Lcom/instagram/android/directshare/g/ab;->b(Lcom/instagram/android/directshare/g/ab;)Landroid/content/Context;

    move-result-object v1

    sget v2, Lcom/facebook/ba;->report_inappropriate:I

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_5

    .line 113
    iget-object v0, p0, Lcom/instagram/android/directshare/g/ah;->a:Lcom/instagram/android/directshare/g/ab;

    invoke-static {v0}, Lcom/instagram/android/directshare/g/ab;->b(Lcom/instagram/android/directshare/g/ab;)Landroid/content/Context;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/directshare/g/ah;->a:Lcom/instagram/android/directshare/g/ab;

    invoke-static {v1}, Lcom/instagram/android/directshare/g/ab;->e(Lcom/instagram/android/directshare/g/ab;)Lcom/instagram/j/l;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/instagram/android/util/ReportMediaUtil;->a(Landroid/content/Context;Lcom/instagram/j/l;)V

    goto :goto_0

    .line 114
    :cond_5
    iget-object v1, p0, Lcom/instagram/android/directshare/g/ah;->a:Lcom/instagram/android/directshare/g/ab;

    invoke-static {v1}, Lcom/instagram/android/directshare/g/ab;->b(Lcom/instagram/android/directshare/g/ab;)Landroid/content/Context;

    move-result-object v1

    sget v2, Lcom/facebook/ba;->directshare_edit_comments:I

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 115
    iget-object v0, p0, Lcom/instagram/android/directshare/g/ah;->a:Lcom/instagram/android/directshare/g/ab;

    invoke-static {v0}, Lcom/instagram/android/directshare/g/ab;->h(Lcom/instagram/android/directshare/g/ab;)Lcom/instagram/android/directshare/g/ag;

    move-result-object v0

    invoke-interface {v0}, Lcom/instagram/android/directshare/g/ag;->Z()V

    goto/16 :goto_0
.end method
